package com.code.modules.base.service;

import com.baomidou.mybatisplus.service.IService;
import com.code.modules.base.model.User;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author MyBatisPlus
 * @since 2021-10-19
 */
public interface UserService extends IService<User> {

    User findUserByusername(String username);

    boolean checkUser(String username, String password);

    List<User> getPageList(String condition);

    boolean changeUserPwd(Integer uid, String pwd,String salt);

    boolean setUserAatar(Integer uid, String avatarurl);

    void setUserRoles(Integer userid, List<Integer> roleids);


}
